import time

from selenium import webdriver

# 设置请求头
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.57'
}

# 设置代理
proxy = 'https://dps.kdlapi.com/api/getdps/?secret_id=o8dwnxxu6fy8d25y7mvw&num=1&signature=n86gw540grw65csznaz351noortcx83q&pt=1&sep=1'

# 创建Chrome WebDriver，并设置请求头和代理
driver = webdriver.Chrome()
# 加载网址
driver.get("https://www.qcc.com/")
driver.maximize_window()
driver.find_element_by_xpath("//a[@class='navi-btn login-nav-btn']/span").click()
time.sleep(10)
driver.find_element_by_xpath("//div").click()

driver.find_element_by_xpath("//svg[@class='[object SVGAnimatedString]']").send_keys('小米')


